import string
import random
with open('big.data','w+',encoding = "utf-8") as f:
    for j in range(100):
        f.write(("".join(random.choices(string.ascii_lowercase,k = random.randint(1,50)))+"\n"))
def read_file():
    with open("big.data", "r+") as f:
        a = [len(i) for i in f]
        print(a)
        print(max(a))
c = read_file()

